import {
    xButton,
    xForm,
    xFormItem,
    xInput,
    xCheckbox,
    xRadioItem,
    xRadioGroup,
    xSwitch,
    xTab,
    xTabItem,
    xMeun,
    xMeunItem,
    xSelect,
    xSelectItem,
    xDatePicker,
    xCard
} from '@/components/x-ui/index.js'

// 注册组件
export default {
    install(Vue) {
        Vue.component('x-button', xButton)
        Vue.component('x-form', xForm)
        Vue.component('x-form-item', xFormItem)
        Vue.component('x-input', xInput)
        Vue.component('x-checkbox', xCheckbox)
        Vue.component('x-radio-item', xRadioItem)
        Vue.component('x-radio-group', xRadioGroup)
        Vue.component('x-switch', xSwitch)
        Vue.component('x-tab', xTab)
        Vue.component('x-tab-item', xTabItem)
        Vue.component('x-meun', xMeun)
        Vue.component('x-meun-item', xMeunItem)
        Vue.component('x-select', xSelect)
        Vue.component('x-select-item', xSelectItem)
        Vue.component('x-date-picker', xDatePicker)
        Vue.component('x-card', xCard)
    }
}
